﻿echo off
if not exist %1 goto TARGET_NOT_FOUND

echo "Deploying to %1" 

copy ".\libs\LumenWorks.Framework.IO.dll" "%1\"
copy ".\app-settings.xml" "%1\"

mkdir %1\data
copy ".\data\*.mdb" "%1\data\"

mkdir %1\instructions
copy ".\instructions\*" "%1\instructions\"

mkdir %1\scenarios
copy ".\scenarios\*.*" "%1\scenarios\"

copy ".\bin\Release\Secams.exe.*" "%1\"

goto DONE

:TARGET_NOT_FOUND
echo "Target directory does not exist"

:DONE